/* 更新后的admin.css */
body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: #f0f2f5;
}

.header {
    width: 100%;
    height: 150px;
    background: #2c3e50;
    color: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header button {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.container {
    display: flex;
    min-height: calc(100vh - 62px);
}

.sidebar {
    background: #34495e;
    color: white;
    width: 250px;
    padding: 1.5rem;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

.sidebar h2 {
    color: #ecf0f1;
    border-bottom: 2px solid #3b4a5d;
    padding-bottom: 1rem;
}

.sidebar a {
    display: block;
    color: #bdc3c7;
    padding: 12px;
    margin: 8px 0;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s;
}

.sidebar a:hover {
    background: #3b4a5d;
    color: #ecf0f1;
}

.sidebar a i {
    margin-right: 10px;
    width: 20px;
}

.main-content {
    flex: 1;
    padding: 2rem;
}

.card {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background: #f8f9fa;
}

button {
    background: #3498db;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: #2980b9;
}

button:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
    }
}